package com.bigbigrain.manage_course.controller;

import com.bigbigrain.api.course.CategoryControllerApi;
import com.bigbigrain.framework.domain.course.ext.CategoryNode;
import com.bigbigrain.manage_course.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description: 课程分类controller
 * @author: B1gB1gRA1n
 * @create: 2019-12-3 13:55
 **/
@RestController
@RequestMapping("/category")
public class CategoryController implements CategoryControllerApi {
    @Autowired
    CategoryService categoryService;

    @Override
    @GetMapping("/list")
    public CategoryNode findList() {
        return categoryService.findList();
    }
}
